package com.example.design.c.chain;

/**
 * 流程处理
 * 经理的处理逻辑
 */
public class ManagerFlowHandler extends FlowHandler {

    /**
     * 经理的标志
     */
    private static final int FLAG = 1;

    @Override
    public void handle(FLowRequest request) {
        boolean result = preHandle(request, FLAG);
        if (result) {
            request.log("经理处理了请假流程, 审批通过 !");
            goNext(request);
        }
    }
}
